class {
    onCreate(input) {
        this.state = {
            clicked: false
        };
    }
}
<div on-click('handleClick')>
    Click me
</div>
